package ch6.ex4;

import static ch6.print.Print.*;

class A{
	A() {
		println("A constructor");
	}
}

class B extends A{
	B() {
		println("B constructor");
	}
}
class C extends B{
	C() {
		println("C constructor");
	}
}

class D extends C{
	D() {
		println("D constructor");
	}
	
	public static D makeD(){
		return new D();
	}
	
	public static void main(String... args){
		new D();
		makeD();
	}
}
public class E extends D{
	E() {
		println("E constructor");
	}
	public static void main(String... args){
		new E();
		D.main(args);
	}
}
